Skip to content

Advanced Precompiled Headers support#145

Open
Victor-Y-Fadeev wants to merge 3 commits intopavelliavonau:developfrom
Victor-Y-Fadeev:advanced-pch
Open

Advanced Precompiled Headers support#145
Victor-Y-Fadeev wants to merge 3 commits intopavelliavonau:developfrom
Victor-Y-Fadeev:advanced-pch

Conversation

@Victor-Y-Fadeev
Copy link
Copy Markdown

Added -pch flag for advanced Precompiled Headers usage:

Added -dio flag to disable INTERPROCEDURAL_OPTIMIZATION because it's not equal to /GL and can cause debug problems.

function(use_precompiled_header SRC_LIST_VAR HEADER_FILE SOURCE_FILE)
if(NOT MSVC)
target_precompile_headers(${PROJECT_NAME} PRIVATE
"$<$<COMPILE_LANGUAGE:CXX>:${CMAKE_CURRENT_SOURCE_DIR}/${HEADER_FILE}>")
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you build your project on linux?

default=False,
action='store_true'
)
parser.add_argument(
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this change is not related to this PR subject. ipo changes should be extracted to another PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants